// 这个模块主要是SKU得数据得模块
import request from '@/utils/request'

// sku列表
export const reqSkuList = (page, limit) => request({
  url: `/admin/product/list/${page}/${limit}`
})

// 上架
export const reqSale = (skuId) => request({
  url: `/admin/product/onSale/${skuId}`
})

// 下架
export const reqCancel = (skuId) => request({
  url: `/admin/product/cancelSale/${skuId}`
})

// 获取sku详情的接口
export const reqSkuById = (skuId) => request({
  url: `/admin/product/getSkuById/${skuId}`
})
